//package com.allwees.data.dataport.module.product.doc;
//
//
//
//
//
//import com.allwees.bs.core.model.useraction.bo.ProductPublishDTO;
//import com.allwees.core.common.util.DateUtil;
//import com.allwees.core.common.util.reflect.PojoUtil;
//
//import com.allwees.data.dataport.module.base.doc.EsDoc;
//import lombok.Data;
//
//import org.springframework.data.annotation.Id;
//import org.springframework.data.elasticsearch.annotations.Document;
//import org.springframework.data.elasticsearch.annotations.Field;
//import org.springframework.data.elasticsearch.annotations.FieldType;
//
//
//
//
//
//@Data
//@Document(indexName = "bs_product", type = "bs_prod_product", replicas = 2, shards = 3)
//public class ProductLog implements EsDoc {
//
//    @Id
//    private String uuid;
//
//    @Field(store = true, type = FieldType.Keyword, fielddata = true)
//    protected String productUuid;
//
//    @Field(store = true, type = FieldType.Keyword, fielddata = true)
//    protected String retailerUuid;
//
//    @Field(store = true)
//    protected Long firstPublishDate;
//
//    @Field(store = true, type = FieldType.Keyword, fielddata = true)
//    protected String productStatus;
//
//    @Field(store = true)
//    protected Integer skuNum;
//    public static ProductLog of(ProductPublishDTO bo) {
//        return PojoUtil.copy(new ProductLog(), bo);
//    }
//
//    @Override
//    public String getUuid() {
//        return uuid;
//    }
//}
